package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouh
 * @since 2017-10-15
 */
@TableName("biz_product_info")
public class ProductInfo extends Model<ProductInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 产品id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * [1-主机,2-超伴,3-管线机,4-开水机]
     */
	@TableField("product_type")
	private String productType;
    /**
     * 产品型号
     */
	@TableField("product_model")
	private String productModel;
    /**
     * 产品姓名
     */
	@TableField("product_name")
	private String productName;

	/**
	 * 剩余库存
	 */
	private Integer amount;

	/**
	 * 部门id
	 */
	private Integer deptid;

    /**
     * 产品状体[1-在售    0-停售]
     */
	private Integer status;//status

	/**
	 * 更换周期
	 */
	@TableField("replace_period")
	private Integer replacePeriod;

	public Integer getReplacePeriod() {
		return replacePeriod;
	}

	public void setReplacePeriod(Integer replacePeriod) {
		this.replacePeriod = replacePeriod;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getProductModel() {
		return productModel;
	}

	public void setProductModel(String productModel) {
		this.productModel = productModel;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProductInfo{" +
			"id=" + id +
			", productType=" + productType +
			", productModel=" + productModel +
			", productName=" + productName +
			", status=" + status +
			"}";
	}
}
